<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAudiosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {

        Schema::create('audios', function(Blueprint $table)
        {
            $table->increments('id');
            $table->unsignedInteger('file_id')->default(0)->comment('音频文件id');
            $table->string('audio_name')->nullable()->comment('音频名');
            $table->string('audio_type')->nullable()->comment('音频类型');
            $table->string('key')->nullable()->comment('音频key');
            $table->softDeletes();
            $table->timestamps();
        });

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
